package com.example.wxback.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.wxback.model.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 消息列表
 */
public interface IWxUserDao extends BaseMapper<UserInfo> {

    int countUser();

    List<UserInfo> getUserList(@Param("offSet") int offSet, @Param("pageSize") int pageSize);

    UserInfo getUser(@Param("id") int id);

    UserInfo getUserByPhone(@Param("phone") String phone);

    int insertUser(@Param("userInfo") UserInfo userInfo);

    int updateUser(@Param("userInfo") UserInfo userInfo);

    int enableUser(@Param("userInfo") UserInfo userInfo);
}
